/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package phd.manager;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import phd.model.Course;
import phd.model.University;
import phd.utils.DBUtil;

/**
 *
 * @author baez
 */
public class StudyPlanManager {
    
    public List<Course> getStudyPlan () throws SQLException{
        
        Connection con = null;
        List<Course> list = null;
        
        try {
            // Let's connect to the DB
            con = DBUtil.getConnection();
            
            Course course = new Course(con);
            list = course.select(2012);
            return list;
            
        // This is a MUST, let's make sure we close the connection    
        } finally {
            if (con != null) con.close();
        }
                
        
    }
    
    public void createStudyPlan(University uni) {
        
    }
    
}
